enum ScanType {
    FORMAT_UNKNOWN = 0,
    AZTEC_CODE = 1,
    CODABAR_CODE = 2,
    CODE39_CODE = 3,
    CODE93_CODE = 4,
    CODE128_CODE = 5,
    DATAMATRIX_CODE = 6,
    EAN8_CODE = 7,
    EAN13_CODE = 8,
    ITF14_CODE = 9,
    PDF417_CODE = 10,
    QR_CODE = 11,
    UPC_A_CODE = 12,
    UPC_E_CODE = 13,
    MULTIFUNCTIONAL_CODE = 14,
    ONE_D_CODE = 100,
    TWO_D_CODE = 101,
    ALL = 1001
  }
  
  interface ScanCodeRect {
    left: number
    top: number
    right: number
    bottom: number
  }
  
  interface Point {
    x: number
    y: number
  }
  
  interface ScanResult {
    scanType: ScanType
    originalValue: string
    scanCodeRect?: ScanCodeRect
    cornerPoints?: Array<Point>
  }
  
   export interface OhJSBridgeInterface {
    /**
     * 打电话
     * @param phoneNumber 手机号
     * @param isShowToast 是否显示toast
     * @returns
     */
    phoneCall: (phoneNumber: string, isShowToast?: boolean) => Promise<void>
    /**
     * 打电话
     * @param phoneNumber 手机号
     * @param isShowToast 是否显示toast
     * @returns
     */
    scanQrCode: () => Promise<ScanResult>
  }
